
function find_name(){
	var t_name = $("[name=t_name]").val();
	alert(t_name);
	location.href="teacher_Servlet?action=find_name&t_name="+t_name;
}

function add_tea(){
		var t_id = $("[name=add_t_id]").val();
	var t_name = $("[name=add_t_name]").val();
	var t_password = $("[name=add_t_password]").val();
	 alert(t_id);
	 alert(t_name);
	 alert(t_password);
	/*location.href="teacher_Servlet?action=add_tea&t_name="+t_name+"&t_id="+t_id+"&t_password="+t_password;*/
	
	location.href="teacher_Servlet?action=add_tea&t_id="+t_id+"&t_name="+t_name+"&t_password="+t_password;
}

function delect_tea(){
	var t_id2 = $("[name=t_id2]").val();
	
	location.href="teacher_Servlet?action=delect_tea&t_id="+t_id2;
}




function update_tea(){
	
	var t_name = $("[name=update_t_name]").val();
	var t_id = $("[name=update_t_id]").val();
	var t_password = $("[name=update_t_password]").val();
	
	alert(t_name);
	alert(t_id);
	alert(t_password);
	location.href="teacher_Servlet?action=update_tea&t_name="+t_name+"&t_id="+t_id+"&t_password="+t_password;
	
	
}
